package cn.edu.jju.psytest.model.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Type;

@Entity
@Table(name="tb_users")
public class User {

	private String userId;
	private String password;
	private String userType;

	/**
	 * Getters And Setters
	 */
	@Id
	@Type(type="string")
	@Column(name = "user_id", length=20)
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Type(type="string")
	@Column(length=20, nullable=false)
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Type(type="string")
	@Column(name="user_type", length=1, nullable=false)
	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}
}
